Optimal. Leaf size=74 \[ \frac {(2 c d-a f) \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{2 c^{3/2}}+\frac {e \sqrt {a+c x^2}}{c}+\frac {f x \sqrt {a+c x^2}}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1815, 641, 217, 206} \[ \frac {(2 c d-a f) \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{2 c^{3/2}}+\frac {e \sqrt {a+c x^2}}{c}+\frac {f x \sqrt {a+c x^2}}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 641
Rule 1815
Rubi steps
\begin {align*} \int \frac {d+e x+f x^2}{\sqrt {a+c x^2}} \, dx &=\frac {f x \sqrt {a+c x^2}}{2 c}+\frac {\int \frac {2 c d-a f+2 c e x}{\sqrt {a+c x^2}} \, dx}{2 c}\\ &=\frac {e \sqrt {a+c x^2}}{c}+\frac {f x \sqrt {a+c x^2}}{2 c}+\frac {(2 c d-a f) \int \frac {1}{\sqrt {a+c x^2}} \, dx}{2 c}\\ &=\frac {e \sqrt {a+c x^2}}{c}+\frac {f x \sqrt {a+c x^2}}{2 c}+\frac {(2 c d-a f) \operatorname {Subst}\left (\int \frac {1}{1-c x^2} \, dx,x,\frac {x}{\sqrt {a+c x^2}}\right )}{2 c}\\ &=\frac {e \sqrt {a+c x^2}}{c}+\frac {f x \sqrt {a+c x^2}}{2 c}+\frac {(2 c d-a f) \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{2 c^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 63, normalized size = 0.85 \[ \frac {(2 c d-a f) \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )+\sqrt {c} \sqrt {a+c x^2} (2 e+f x)}{2 c^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 124, normalized size = 1.68 \[ \left [-\frac {{\left (2 \, c d - a f\right )} \sqrt {c} \log \left (-2 \, c x^{2} + 2 \, \sqrt {c x^{2} + a} \sqrt {c} x - a\right ) - 2 \, {\left (c f x + 2 \, c e\right )} \sqrt {c x^{2} + a}}{4 \, c^{2}}, -\frac {{\left (2 \, c d - a f\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-c} x}{\sqrt {c x^{2} + a}}\right ) - {\left (c f x + 2 \, c e\right )} \sqrt {c x^{2} + a}}{2 \, c^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 58, normalized size = 0.78 \[ \frac {1}{2} \, \sqrt {c x^{2} + a} {\left (\frac {f x}{c} + \frac {2 \, e}{c}\right )} - \frac {{\left (2 \, c d - a f\right )} \log \left ({\left | -\sqrt {c} x + \sqrt {c x^{2} + a} \right |}\right )}{2 \, c^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 76, normalized size = 1.03 \[ -\frac {a f \ln \left (\sqrt {c}\, x +\sqrt {c \,x^{2}+a}\right )}{2 c^{\frac {3}{2}}}+\frac {d \ln \left (\sqrt {c}\, x +\sqrt {c \,x^{2}+a}\right )}{\sqrt {c}}+\frac {\sqrt {c \,x^{2}+a}\, f x}{2 c}+\frac {\sqrt {c \,x^{2}+a}\, e}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 61, normalized size = 0.82 \[ \frac {\sqrt {c x^{2} + a} f x}{2 \, c} + \frac {d \operatorname {arsinh}\left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {c}} - \frac {a f \operatorname {arsinh}\left (\frac {c x}{\sqrt {a c}}\right )}{2 \, c^{\frac {3}{2}}} + \frac {\sqrt {c x^{2} + a} e}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.56, size = 107, normalized size = 1.45 \[ \left \{\begin {array}{cl} \frac {2\,f\,x^3+3\,e\,x^2+6\,d\,x}{6\,\sqrt {a}} & \text {\ if\ \ }c=0\\ \frac {e\,\sqrt {c\,x^2+a}}{c}+\frac {d\,\ln \left (\sqrt {c}\,x+\sqrt {c\,x^2+a}\right )}{\sqrt {c}}-\frac {a\,f\,\ln \left (2\,\sqrt {c}\,x+2\,\sqrt {c\,x^2+a}\right )}{2\,c^{3/2}}+\frac {f\,x\,\sqrt {c\,x^2+a}}{2\,c} & \text {\ if\ \ }c\neq 0 \end {array}\right . \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.50, size = 150, normalized size = 2.03 \[ \frac {\sqrt {a} f x \sqrt {1 + \frac {c x^{2}}{a}}}{2 c} - \frac {a f \operatorname {asinh}{\left (\frac {\sqrt {c} x}{\sqrt {a}} \right )}}{2 c^{\frac {3}{2}}} + d \left (\begin {cases} \frac {\sqrt {- \frac {a}{c}} \operatorname {asin}{\left (x \sqrt {- \frac {c}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge c < 0 \\\frac {\sqrt {\frac {a}{c}} \operatorname {asinh}{\left (x \sqrt {\frac {c}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge c > 0 \\\frac {\sqrt {- \frac {a}{c}} \operatorname {acosh}{\left (x \sqrt {- \frac {c}{a}} \right )}}{\sqrt {- a}} & \text {for}\: c > 0 \wedge a < 0 \end {cases}\right ) + e \left (\begin {cases} \frac {x^{2}}{2 \sqrt {a}} & \text {for}\: c = 0 \\\frac {\sqrt {a + c x^{2}}}{c} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________